﻿using System;
using DapperExtensions.Mapper;
using ZilLion.Service.Crm.ModelBase.EntityBase;

namespace ZilLion.Service.WechatService.Domain.WebApiEntity.WechatCardModel
{
    public class AccThrOpenYwdetail: QMessage
    {
        public override string Queue { get { return "ThrOpenYwdetail"; } }
        public override string MessageRouter
        {
            get { return "ThrOpenYwdetail"; }
        }

        public AccThrOpenYwcore Ywcore { get; set; }
        /// <summary>
        ///  业务营业日
        /// </summary>
        public DateTime? oprywdate { get; set; }

        /// <summary>
        ///  本地业务生效人id(员工id)
        /// </summary>
        public int oprid { get; set; }

        /// <summary>
        ///  本地业务生效人名称
        /// </summary>
        public string oprname { get; set; }

        /// <summary>
        ///  业务界面名称。显示字段。
        /// </summary>
        public string oprywwindow { get; set; }

        /// <summary>
        ///  业务摘要信息。显示字段。
        /// </summary>
        public string oprsummary { get; set; }

    }


    public class AccThrOpenYwdetailMapper : ClassMapper<AccThrOpenYwdetail>
    {
        public AccThrOpenYwdetailMapper()
        {
            Table("#ywdetail");
            Map(f => f.oprywdate).Column("oprywdate");
            Map(f => f.oprid).Column("oprid");
            Map(f => f.oprname).Column("oprname");
            Map(f => f.oprywwindow).Column("oprywwindow");
            Map(f => f.oprsummary).Column("oprsummary");

        }
    }
}
